package com.newcoin.kline.service;

import com.newcoin.kline.entity.KlineConfigEntity;
import com.newcoin.kline.entity.MarksEntity;
import com.newcoin.kline.entity.TimescaleMarksEntity;

import java.util.List;
import java.util.Map;

public interface KlineService {
    KlineConfigEntity getConfig() throws Exception;

    Map<String, Object> getSymbol(String symbol) throws Exception;

    MarksEntity getMarks(String symbol, Long from, Long to, String resolution) throws Exception;

    List<TimescaleMarksEntity> getTimescaleMarks(String symbol, Long from, Long to, String resolution) throws Exception;

    Map<String, Object> history(String symbol, String resolution, Long from, Long to) throws Exception;

    Map<String, Object> symbolInfo(String group) throws Exception;
}
